ISCModelProperty Interface

The following table contains information on the ISCModelProperty interface:

Signature

Description

Valid Arguments

VARIANT_BOOL RemoveValue(VARIANT ValueId [optional])

Removes the specified value from the property

ValueId:

  • Empty � For scalar properties only.
  • VT_I4 � Index of a non-scalar property. Removes the value with the given index in a non-scalar property.
  • VT_BSTR � Name of the property member in a non-scalar property. Removes the value of the non-scalar property member with the given name.

VARIANT_BOOL RemoveAllValues()

Remove all values from the property

None

Example 24

The following example illustrates how to delete scalar properties using C++ if there is a model object and a transaction is open:

CString propName("Some Property Name");
// …
CComVariant bRetVal = scObjPtr->GetProperties()->Remove(COleVariant(propName));

The following example illustrates how to delete scalar properties using Visual Basic .NET if there is a model object and a transaction is open:

Dim propName As String
propName = "Some Property Name"

bRetVal = scObj.Properties.Remove(propName)